package _interface

import (
	"gitee.com/leeqiang250/go-common/network"
	"gitee.com/leeqiang250/go-common/util"
	"net/http"
)

type Http interface {
	Path() string
	Method() []network.HttpMethod
	GetDTO() util.DTO
	SetDTO(request *http.Request, dto util.DTO)
	Verify(dto util.DTO) bool
	Start(request *http.Request, response http.ResponseWriter)
	Execute(request *http.Request, response http.ResponseWriter, dto util.DTO) util.Result
	Error(request *http.Request, response http.ResponseWriter) util.Result
	End(request *http.Request, response http.ResponseWriter)
}
